<include file="Public:header" />
<div style="background:#fff; height:40px; line-height:40px; border-bottom:1px solid #ccc; text-align:center;" class="headernav1"> <a href="javascript:history.go(-1);" style="height:40px; width:40px; display:block; float:left; text-align:center;"><i class="fa fa-angle-left"></i></a> <i style="color:#ff1b51;" class="fa fa-file-text-o"></i> 营业账单 <a href="{:U('Home/Cart/index')}" style="height:40px; width:40px; display:block; float:right; text-align:center;"><i class="fa fa-cart-plus"></i></a> </div>
<style>
.headernav1 .fa{font-size:20px;}
.headernav{display:none;}
.nav-glyphicons-list {
	display: table;
	width: 100%;
	padding-left: 0;
	list-style: none;
}
.nav-glyphicons li {
	display: table-cell;
	text-align: center;
    *display: inline-block;
    +float:left;
    
}
.nav-glyphicons li ul li {
	display: block;
}
.nav-glyphicons li a {
	display: inline-block;
	width: 100%;
    _width:auto;
	padding-top:0.2em;
}
.panel-info{border:none !important;}
.nav-glyphicons .glyphicon-class {
	display: block;
	text-align: center;
	word-wrap: break-word
}
.nav-glyphicons .dropdown-menu {
	border-radius: 0;
	padding-top: 0;
	padding-bottom: 0;
}

.panel-success{border-radius:0 !important; border-color:transparent;}
.panel-success .panel-body{border:none;}

.panel-success .panel-heading{border-radius:0;}
.list-group-item{border-radius:0 !important};
.nav-justified>li>a{margin-bottom:0; border-radius:0;}
.nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover{background-color:#FF1B51;}
.nav>li>a {
    position: relative;
    display: block;
    padding: 3px 7px;
}
</style>
<script type="text/javascript" src="__PUBLIC__/Js/Calendar.js"></script>


<div style="padding:0 5px; background:#FFFFFF; border-bottom:5px solid #eee; border-top:5px solid #eee; padding:8px;">
  <div class="form-group" style="margin-bottom:0;">
    <form action="{:U('Member_account_log/divide')}" method="get">
     <input type="text" class="form-control" placeholder="日期筛选" name="find_time" onClick="new Calendar().show(this);" style="width:50%; display: inline;" >
     <input type="hidden" name="pd_time" value="1">
        <input type="hidden" name="stype" value="{$stype}">
     <input type="submit" class="btn btn-info" value="确认">
    </form> 
  </div>
</div>
<!--<div class="panel panel-info" style="margin:0;">
  <div class="panel-heading"><i class="glyphicon glyphicon-calendar"></i>总营业统计</div>
  <div class="panel-body" style="background:rgba(255,255,255,1.00); border:none;" >
    <div class="nav-glyphicons Bbutton">
      <ul class="nav-glyphicons-list" style="background-color:#fff">
        <li class=""><a href=""><span class="" aria-hidden="true"><if condition="$sumdivide.zdivide eq 0 ">0<else />{$sumdivide.zdivide}</if></span><span class="glyphicon-class">总收益</span></a></li>
        <li class=""><a href="" style="border-left:1px solid #ccc; border-right:1px solid #ccc;"><span class="" aria-hidden="true"><if condition="$sumdivide.ddivide eq 0 ">0<else />{$sumdivide.ddivide}</if></span><span class="glyphicon-class">待收益</span></a></li>
        <li class=""><a href=""><span class="" aria-hidden="true"><if condition="$sumdivide.ydivide eq 0 ">0<else />{$sumdivide.ydivide}</if></span><span class="glyphicon-class">已收益</span></a></li>
      </ul>
    </div>
  </div>
</div>
<div class="panel panel-info" style="margin:0;">
  <div class="panel-heading"><i class="glyphicon glyphicon-calendar"></i>本月营业统计</div>
  <div class="panel-body" style="background:rgba(255,255,255,1.00); border:none;" >
    <div class="nav-glyphicons Bbutton">
      <ul class="nav-glyphicons-list" style="background-color:#fff">
        <li class=""><a href=""><span class="" aria-hidden="true"><if condition="$sumdivide.bzdivide eq 0 ">0<else />{$sumdivide.bzdivide}</if></span><span class="glyphicon-class">本月收益</span></a></li>
        <li class=""><a href="" style="border-left:1px solid #ccc; border-right:1px solid #ccc;"><span class="" aria-hidden="true"><if condition="$sumdivide.bddivide eq 0 ">0<else />{$sumdivide.bddivide}</if></span><span class="glyphicon-class">本月待收益</span></a></li>
        <li class=""><a href=""><span class="" aria-hidden="true"><if condition="$sumdivide.bydivide eq 0 ">0<else />{$sumdivide.bydivide}</if></span><span class="glyphicon-class">本月已收益</span></a></li>
      </ul>
    </div>
  </div>
</div>-->
<div class="panel panel-info" style="margin:0px;">
    <eq name="LevelId" value="1">
        <div style="padding:5px; padding-bottom:0px;">
        <div class="panel-heading">
        <h3 class="panel-title">收益明细</h3>
    </div>
             <!-- <ul class="nav nav-pills nav-justified" style="border: 1px solid #FF1B51;background:#fff;">
            <li class="panel-title"><a href="##">营业收益</a></li>
              <li <eq name="stype" value="0">class="active"</eq> role="presentation"><a href="{:U('', array('stype' => 0))}">营业收益</a></li>
                <li role="presentation" <eq name="stype" value="1">class="active"</eq> ><a href="{:U('', array('stype' =>1))}">推荐收益</a></li>
            </ul>-->
        </div>
     <else />
        <div class="panel-heading">
            <h3 class="panel-title">收益明细</h3>
        </div>
    </eq>
  <div class="panel-body" style="padding:0; border:none;">
  <notempty name="list">
           <ul class="list-group">
  <volist name="list" id="vo">
 
            <li class="list-group-item">
      
               <p class="list-group-item-text">订单号： <?php echo (M('Member_account_log')->where(' id = '.$vo['id'])->getField('order_sn')); ?>
             <!--  <p class="list-group-item-text">销售额：{$vo.goodsMoney}-->　
              </p>
              <!-- <p class="list-group-item-text">级别：{$vo.deep}　
              </p> -->
              <p class="list-group-item-text">收益金额：{$vo.changenum}　
              <!-- </p>
              <p class="list-group-item-text">账户余额：{$vo.changenum}-->　
              </p>
               <!-- <if condition="$LevelId ==1 and $stype ==0">
                <else/>-->
              <p class="list-group-item-text">状态：<if condition="$vo.status eq 0">
                  <span style="color: rgba(159,41,43,1.00)">待确认</span>
              <elseif condition="$vo.status eq 3"/>
                  <span style="color: rgba(159,41,43,1.00)">已经退货</span>
              <elseif condition="$vo.status eq 1"/>已确认</if><span style="font-size:20px; float:right; color:#f00;"><gt name="vo['changenum']" value="0">+</gt>{$vo.changenum}</span></p>
                    </if>
              <p class="list-group-item-text">{:date('Y-m-d H:i:s', $vo['dateline'])}</p>
            </li>
     </volist> </ul>
     <else/>
     <div style="padding:10px; text-align:center;">暂无数据</div>
     </notempty>
  </div>
</div>
<div class="pages">{$pages}</div>
<include file="Public:footer" />